-- GENERATED SPELL FOR [Fledgling Pterrordax] --


function spell0_9165(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9165', 2314, 1)
end

function Sorts_9165(pUnit, Event)
local choix_sorts_9165 = math.random(0, 0)
if choix_sorts_9165 == 0 then
pUnit:RegisterEvent('spell0_9165', 1, 1)
end
end

function mob9165_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9165', math.random(1500, 3000), 1)
end

function mob9165_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9165_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9165_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9165, 1, 'mob9165_Action')
RegisterUnitEvent(9165, 2, 'mob9165_Leave')
RegisterUnitEvent(9165, 3, 'mob9165_Kill')
RegisterUnitEvent(9165, 4, 'mob9165_Die')
